﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Shipping &amp; Payment</title>
<meta name="keywords" content="keywords" />
<meta name="description" content="description" />
<{include file="block/meta.tpl"}>
<script type="text/javascript" src="<{$__HST_UI}>/js<{$_The.ScriptBase}>.js"></script>
</head>
<body>
<div id="wrap">
<{include file="block/header.tpl"}>

<div class="pay pay2">
	<h2></h2>
	<form id="fm_buy" method="post">
	<input type="hidden" name="action" value="create" />
	<div class="box info">
		<h3></h3>
		<div class="inBox">
			<div class="form">
				<div class="inner">
					<div class="input"><span class="title"><{'buy_sign'|i18n|escape:html}>:</span>
						<input type="text" name="sign" value="<{$rP.sign|escape:html}>" />
					</div>
					<div class="input"><span class="title"><{'buy_address'|i18n|escape:html}>:</span>
						<input type="text" name="address" value="<{$rP.address|escape:html}>" />
					</div>
					<div class="input"><span class="title"><{'buy_mobile'|i18n|escape:html}>:</span>
						<input type="text" name="mobile" value="<{$rP.mobile|escape:html}>" />
					</div>
					<div class="input"><span class="title"><{'buy_phone'|i18n|escape:html}>:</span>
						<input type="text" name="phone" value="<{$rP.phone|escape:html}>" />
					</div>
					<div class="input"><span class="title"><{'buy_email'|i18n|escape:html}>:</span>
						<input type="text" name="email" value="<{$rP.email|escape:html}>" />
					</div>
					<div class="input"><span class="title"><{'buy_postcode'|i18n|escape:html}>:</span>
						<input type="text" name="postcode" value="<{$rP.postcode|escape:html}>" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="box payment">
		<h3></h3>
		<div class="inBox">
			<div class="inner">
<{foreach from=$rPayments item=rPayment}>
	<label><input type="radio" name="payment_id" class="payment_radio" value="<{$rPayment.ID}>"<{if $rPayment.ID==$rP.payment_id}> checked="checked"<{/if}> />
		<img src="<{$__HST_UI}><{$rPayment.ThumbUrl}>" title="<{$rPayment.ID|payment_method}>" />
	</label>
<{/foreach}>
			</div>
		</div>
	</div>
	<div class="box shipping">
		<h3></h3>
		<div class="inBox">
			<div class="inner clearfix">
<{foreach from=$rShipMethods item=rShipMethod}>
	<label id="ship_<{$rShipMethod.ID}>" class="for_payment_<{$rShipMethod.PaymentID}>">
		<input type="radio" name="ship_id" rel="<{$rShipMethod.ID|ship_price}>" value="<{$rShipMethod.ID}>"<{if $rShipMethod.ID==$rP.ship_id}> checked="checked"<{/if}> />
		<img class="disabled" src="<{$__HST_UI}><{$rShipMethod.ThumbUrlDisabled}>" title="<{$rShipMethod.ID|ship_method}>" />
		<img class="enabled" src="<{$__HST_UI}><{$rShipMethod.ThumbUrl}>" title="<{$rShipMethod.ID|ship_method}>" style="display:none;" />
		<div><{if 'dollor'==$smarty.session.MONEY}>$<{else}>￥<{/if}><span><{$rShipMethod.ID|ship_price}></span></div>
	</label>
<{/foreach}>
			</div>
		</div>
	</div>
	<div class="box goods">
		<h3></h3>
		<table width="674" border="0" cellpadding="0" cellspacing="1"><tr class="head">
			<td class="t0"><{'buy_item_title'|i18n|escape:html}></td>
			<td class="t90"><{'buy_item_size'|i18n|escape:html}></td>
			<td class="t60"><{'buy_item_kuang'|i18n|escape:html}></td>
			<td class="t60"><{'buy_unit_price'|i18n|escape:html}></td>
			<td class="t60"><{'buy_quantity'|i18n|escape:html}></td>
		</tr>
<{section name=i loop=$rCart}>
		<tr class="item">
			<td><a href="/artwork/detail.php?id=<{$rCart[i].Item.id}>"><img src="<{$rCart[i].Item.thumb|uWork_thumb:$rCart[i].Item.id:'50x50.jpg'}>"><span class="title"><{$rCart[i].Item.id|uWork_i18n:title|escape:html}></span></a></td>
			<td><{$rCart[i].Item|@uWork_i18n:size_title|escape:html}></td>
			<td><a href="javascript:void(0)" class="kuang<{if $rCart[i].Item.kuang_id}>_on<{/if}>"></a></td>
			<td><{if 'dollor'==$smarty.session.MONEY}>$<{else}>￥<{/if}><span class="unit"><{$rCart[i].Item|@uWork_Price|escape:html}></span>
				<input type="hidden" class="each" value="<{math equation='q*p' p=$rCart[i].Item|@uWork_Price q=$rCart[i].Quantity}>" />
			</td>
			<td class="qt"><{$rCart[i].Quantity|escape:html}></td>
		</tr>
<{/section}>
		<tr class="foot">
			<td colspan="5"><{'buy_total_price'|i18n|escape:html}>: <{if 'dollor'==$smarty.session.MONEY}>$<{else}>￥<{/if}><span id="price_all">0</span> +<{if 'dollor'==$smarty.session.MONEY}>$<{else}>￥<{/if}><span id="price_ship"><{$rP.ship_id|ship_price|default:0}></span></td>
		</tr></table>
	</div>
	</form>
	<div class="btn clearfix">
		<a class="back" href="cart.php"></a>
		<a class="submit" href="javascript:$('#fm_buy').submit();void(0);"></a>
	</div>
</div>

<{include file="block/footer.tpl"}>
</div>
</body>
</html>
